package com.hsd.znsh.pojo.query;

import com.hsd.znsh.entity.Batch;
import com.hsd.znsh.hql.ClassName;
import com.hsd.znsh.hql.Equal;
import com.hsd.znsh.hql.Ignore;
import com.hsd.znsh.hql.In;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/*
 * @auther: wangjiacai
 *
 * @create: 2018-05-03 21:49:22
 */
@Data
@ClassName(Batch.class)
public class BatchQuery {

    /*种植面积*/
    private Integer plantingArea;

    /*预期收获产量*/
    private Integer expectedProduction;

    /*产品名称*/
    private String productName;

    /*批次开始时间*/
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date batchStartTime;

    /*预期收获时间*/
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date expectedHarvestTime;

    /*批次状态*/
    @Equal
    private Integer status;

    /*主机id*/
    @Equal
    private Integer hostId;

    /*批次编号*/
    private String batchSn;
}

